package com.huawei.appgallery.wishwall.ui.cardkit.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appgallery.wishwall.ui.cardkit.card.WishWallSubHeaderCard;
import o.azb;
import o.cgz;
import o.cht;
import o.ddq.c;

public class WishWallSubHeaderNode extends cht {
    public WishWallSubHeaderNode(Context context) {
        super(context, 1);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        viewGroup.setPadding(0, viewGroup.getPaddingTop(), 0, viewGroup.getPaddingBottom());
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
        layoutParams.weight = 1.0f;
        View inflate = LayoutInflater.from(this.ॱ).inflate(c.ॱˊ, null);
        azb.ˏ(inflate);
        ˊ(ˏ(inflate));
        viewGroup.addView(inflate, layoutParams);
        return true;
    }

    protected cgz ˏ(View view) {
        cgz wishWallSubHeaderCard = new WishWallSubHeaderCard(this.ॱ);
        wishWallSubHeaderCard.ˏ(view);
        return wishWallSubHeaderCard;
    }
}
